package com.leyou.item.inter.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zqq
 * @ClassName BrandPageDTO
 * @Description: 品牌分页查询参数类
 * @date 2020/3/6-15:24
 */
@Data
@ApiModel(value = "BrandPageDTO", description = "品牌分页查询参数类")
public class BrandPageDTO {

    /** 当前页 */
    @ApiModelProperty(value = "当前页，默认第一页", name = "page")
    private int page = 1;

    /** 每页条数 */
    @ApiModelProperty(value = "每页条数，默认每页5条", name = "rows")
    private int rows = 5;

    /** 排序字段 */
    @ApiModelProperty(value = "排序字段", name = "sortBy")
    private String sortBy;

    /** 是否为降序 */
    @ApiModelProperty(value = "是否为降序", name = "desc")
    private Boolean desc;

    /** 搜索关键字，品牌名或首字母 */
    @ApiModelProperty(value = "搜索关键字，品牌名或首字母", name = "key")
    private String key;

}
